home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: dd.chalmers.se!news.chalmers.se!sunic!pipex!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!CERN.ch!dxcern!danpop
- From: danpop@cernapo.cern.ch (Dan Pop)
- Subject: Re: Where to put the {}'s?
- Message-ID: <1994May16.221927.2274@dxcern.cern.ch>
- Sender: danpop@dxcern.cern.ch (Dan Pop)
- Organization: CERN European Lab for Particle Physics
- References: <2r0tet$ak8@acme.gatech.edu> <9umFmc1w165w@qnx.nacjack.gen.nz>
- Date: Mon, 16 May 1994 22:19:27 GMT
- Lines: 23
-
- In <9umFmc1w165w@qnx.nacjack.gen.nz> bruce@qnx.nacjack.gen.nz (Bruce Simpson) writes:
-
- >I don't know of any C compiler worth a pinch of salt that doesn't
- >accept the // form of commenting. You don't even have to enable
- >C++ compatibility options to use it (hey... even MSC6 lets you use
- >the double slash!)
-
- The // form of commenting does not exist in the C language, it's only a
- syntax error and any compiler that accepts it is simply broken and it's
- not worth a pinch of salt :-)
-
- Consider the following _valid_ C construct:
-
- i = a //* comment */ 2;
-
- If a C compiler fails to compile it properly, that compiler _is_ broken.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@cernapo.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-